
public class Node implements Comparable<Node> {

	private Integer rowsNumber;
	private int sheetNumber;

	Node(int rowsNumber, int sheetNumber){
		this.rowsNumber = rowsNumber;
		this.sheetNumber = sheetNumber;
	}
	
	int getRowsNumber() {
		return rowsNumber;
	}

	void setRowsNumber(int rowsNumber) {
		this.rowsNumber = rowsNumber;
	}

	int getSheetNumber() {
		return sheetNumber;
	}

	void setSheetNumber(int sheetNumber) {
		this.sheetNumber = sheetNumber;
	}
	

	@Override
	public int compareTo(Node node) {
		return -rowsNumber.compareTo(node.rowsNumber);
	}
	
}
